Chart3D for WPF and Silverlight > Using Chart3D for WPF and Silverlight > Rotating and Elevating a Chart |
It's easy to rotate a chart using the Azimuth property. The default angle for C1Chart3D is 30 degrees.
The following XAML sets the Azimuth property to 120 degrees.
XAML |
Copy Code
|
---|---|
<c1chart3d:C1Chart3D Height="150" HorizontalAlignment="Left" Margin="96,51,0,0" Name="c1Chart3D1" VerticalAlignment="Top" Width="200" Azimuth="120"> |
Each chart has an elevation angle, or an incline above the X-axis. When you first add a chart to the window, the elevation angle is 150 degrees, by default.
To change the incline angle, use the Elevation property. The following XAML sets the Elevation property to 120.
XAML |
Copy Code
|
---|---|
<c1chart3d:C1Chart3D Height="150" HorizontalAlignment="Left" Margin="96,51,0,0" Name="c1Chart3D1" VerticalAlignment="Top" Width="200" Azimuth="30" Elevation="120"> |
You can also create a two-dimensional chart using the Elevation property. See Creating a Two-Dimensional Chart for more information.